package io.renren.modules.app.service;


import com.baomidou.mybatisplus.service.IService;
import io.renren.modules.app.entity.UserCarEntity;
import org.springframework.transaction.annotation.Transactional;

public interface UserCarService extends IService<UserCarEntity> {

    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    UserCarEntity queryOneByUserId(Long userId);

    /**
     * 插入一条数据
     * @param userCarEntity
     * @return
     */
    @Transactional
    boolean insertOne(UserCarEntity userCarEntity);

    /**
     * 更新
     * @param userCarEntity
     * @return
     */
    boolean update(UserCarEntity userCarEntity);
}
